package liumengbaio.lolzhangyoubao.Activity.Activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import liumengbaio.lolzhangyoubao.R;

/**
 * Created by lanouhn on 16/8/26.
 */
public class VideoThird_headActivity extends AppCompatActivity {
    private TextView tv;
    private ImageView back;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.video_third_head);
        initView();
        initData();
        initEvent();
    }

    private void initView() {
        tv = (TextView) findViewById(R.id.video_third_content);
        back = (ImageView) findViewById(R.id.video_third_back);
    }

    private void initData() {
        Intent intent = getIntent();
        String content = intent.getStringExtra("desc");
        tv.setText(content);
    }

    private void initEvent() {
        back.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
    }
}
